package com.mgface.gateway.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.mgface.dubbo.commonrpc.Ihello;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project dubbo
 * @create 2018-08-15 11:33
 **/
@RestController
public class RpcController {
    @Reference(version = "1.0.0",mock = "true")
    private Ihello hello;
    @GetMapping("/")
    public String say(){
        return hello.say("servicerpc");
    }
}
